<?php
/* @var $this SiteController */
/* @var $model ContactForm */
/* @var $form CActiveForm */
$baseUrl = Yii::app()->request->baseUrl;

$this->pageTitle = 'FAQ';
$this->breadcrumbs = array(
    'Contact',
);
?>
<div class="row light-gray">
    <div class="row-content pageTitle ">
        <ul>
            <li><a href="<?echo Yii::app()->request->baseUrl?>/">Home page</a> &gt;</li>
            <li>FAQ</li>
        </ul>
        <h1>
            Frequently Asked Questions</h1>

    </div>
</div>
<div class="row light-gray">
    <div class="row-content">
        <ul class="faq">
            <?
            $faqs = Faq::model()->findAll();
            $count = 1;
            foreach ($faqs as $faq) {
                ?>
                <li>
                    <div id="<?echo $faq->id;?>" class="question"><span><?echo $count; ?></span><?echo $faq->question;?></div>
                    <div class="answer">
                        <?echo $faq->answer;?>
                    </div>
                </li>

            <? 
                $count++;
            }
            ?>

        </ul>
    </div>
</div>